package com.heima.wemedia;

import com.heima.client.article.IArticleClient;
import com.heima.client.schedule.ITaskClient;
import com.heima.client.wemedia.IWemediaClient;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;


@SpringBootApplication
@EnableScheduling
@EnableAsync
@MapperScan("com.heima.wemedia.mapper")
@EnableFeignClients(clients = {IArticleClient.class, ITaskClient.class})
@EnableCaching
//@ComponentScan(value = {"com.heima.wemedia","com.heima.client.article.fallback"})
public class WemediaApplication {
    public static void main(String[] args) {
        SpringApplication.run(WemediaApplication.class,args);
    }


}
